package com.shujia.rpc;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class RMIQueryStatusImpl extends UnicastRemoteObject implements RMIQueryStatus {

    public RMIQueryStatusImpl() throws RemoteException { }

    public String getFileStirng(String filename) throws RemoteException {

        System.out.println(filename);

        String rStr = "===+++==="+filename+"============";

        try {
            Thread.sleep(2000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return rStr;

    }
}
